package org.example.facade.component;

import javafx.scene.Cursor;
import javafx.scene.layout.VBox;
import lombok.Getter;

@Getter
public class Command_component extends ImgLabel {
    private final Gizmo_command gizmoCommand;

    public Command_component(String resource, String labelText, Gizmo_command gizmoCommand){
        super(resource, labelText);
        this.gizmoCommand = gizmoCommand;
    }

    @Override
    public VBox createVBox() {
        VBox vBox = super.createVBox();
        getImageView().setCursor(Cursor.HAND);
        return vBox;
    }

    public Gizmo_command getGizmoCommand() {
        return gizmoCommand;
    }
}
